package com.huluobo.a2204kotlinshopping.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.huluobo.a2204kotlinshopping.R;
import com.huluobo.base.bean.HomeGoodsBean;

import java.util.List;

/**
 * Created by LC on 2024/7/22.
 */
public class HomeAdapter extends BaseQuickAdapter<HomeGoodsBean, BaseViewHolder> {
    public HomeAdapter(@Nullable List<HomeGoodsBean> list) {
        super(R.layout.item_home_goods, list);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, HomeGoodsBean homeGoodsBean) {
        baseViewHolder.setText(R.id.item_home_goods_desc_tv, homeGoodsBean.getGoods_desc());
    }
}
